package com.greyu.ysj.service;

import java.util.List;
import com.greyu.ysj.entity.CbtDraw;
import com.greyu.ysj.model.ResultModel;

public interface CbtDrawService {
	
	ResultModel save(CbtDraw cbtDraw);
	//用户提现记录
	List<CbtDraw> selectDrawRecordByuserId(Integer page, Integer rows,Integer userId);
	
	int totalPages(Integer userId,Integer rows);
	
	int selectMaxDrawId();
	
	CbtDraw selectCbtDrawById(Integer id);
	
	ResultModel updateCbtDraw(Integer id, CbtDraw cbtDraw);
	//交易hash是否在表中进行存在
	boolean isHashExist(String hash);
	
	List<CbtDraw> selectAll(CbtDraw cbtDraw);
	
	double selectTotalDrawByuserId(int userId);
	
	int countTodayByUserId(Integer userId);
	
	List<CbtDraw> selectAllDrawByuserId(Integer userId);
	
}
